package com.pocket.insight.base.sql;

import com.pocket.insight.entity.Dataset;

import java.util.Map;

/**
 * 描述：
 *
 * @author shuize
 * @create 2024/12/8
 */
public class SchemaProviderFactory {

    public static SchemaProvider create(Map<String, Dataset.Field> schemaMap) {
        return new DatasetSchemaProvider(schemaMap, null);
    }

    public static SchemaProvider create(Map<String, Dataset.Field> schemaMap, Map<String, Dataset.Metric> metricMap) {
        return new DatasetSchemaProvider(schemaMap, metricMap);
    }

}
